<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>12_ng-selected</title>
    <script src="../lib/angularjs.js"></script>
</head>

<body ng-app="myApp" ng-controller="myCtrl">
    <label for="select-status">
        选择上海：
        <input id="select-status" type="checkbox" ng-model="status">
        {{status}}
    </label>
    <div>
        <select>
            <option value="guangzhou">广州</option>
            <option value="shenzhen">深圳</option>
            <option value="shanghai" ng-selected="status">上海</option>
        </select>
    </div>
</body>

<script>
    const myApp = angular.module("myApp", [])
    myApp.controller("myCtrl", ["$scope", function ($scope) {
    }])
</script>

</html>